import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/ai/chat/` + url, ...arg)


export default {
	async getByAiId(data) {
		return await request(`get_by_ai_id`, data, 'post')
	},
	async save(data) {
		return await request(`save`, data, 'post')
	},
	async resolveTemplateConfig(data) {
		return await request(`resolve_template_config`, data, 'post')
	}
}

